import request from '@/utils/request'

// 物流面单-列表
export const billLogisticsList = data =>
  request({
    url: `/bill/logistics/index`,
    method: 'post',
    data,
  })

// 物流面单-详情
export const billLogisticsDetail = params =>
  request({
    url: `/bill/logistics/detail`,
    method: 'get',
    params,
  })

// 物流面单-创建
export const createBillLogistics = data =>
  request({
    url: `/bill/logistics/create`,
    method: 'post',
    data,
  })

// 物流面单-编辑
export const updateBillLogistics = data =>
  request({
    url: `/bill/logistics/update`,
    method: 'post',
    data,
  })

// 物流面单-删除
export const deleteBillLogistics = data =>
  request({
    url: `/bill/logistics/delete`,
    method: 'post',
    data,
  })

// 物流面单-启用禁用
export const statusBillLogistics = data =>
  request({
    url: `/bill/logistics/status`,
    method: 'post',
    data,
  })

export const getBillOptions = params =>
  request({
    url: `/bill/logistics-type/get-options`,
    method: 'get',
    params,
  })
